package im.eg.springdemo;

import im.eg.springdemo.stuffs.AppConfig;
import im.eg.springdemo.stuffs.Order;
import im.eg.springdemo.stuffs.OrderService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class SpringDemoMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        System.out.println("========================");
        OrderService orderService = (OrderService) context.getBean("orderService");
        orderService.addOrder(new Order());

    }
}
